package com.sp.app.service.impl;


import com.sp.app.dao.CoursecommentMapper;
import com.sp.app.domain.Coursecomment;
import com.sp.app.service.CoursecommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("CoursecommentService")
public class CoursecommentServiceImpl implements CoursecommentService {

    @Autowired
    private CoursecommentMapper coursecommentMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return coursecommentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Coursecomment record) {
        return coursecommentMapper.insert(record);
    }

    @Override
    public Coursecomment selectByPrimaryKey(String id) {
        return coursecommentMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(Coursecomment record) {
        return coursecommentMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Coursecomment> queryAll(Coursecomment record) {
        return coursecommentMapper.queryAll(record);
    }
}
